package cn.itsource.smartcampus.service;

import cn.itsource.smartcampus.domain.Teacher;
import cn.itsource.smartcampus.util.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TeacherService {

    /**
     * 根据主键id删除数据
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 添加老师
     *
     * @param tea
     * @return
     */
    AjaxResult<Integer> insert(Teacher tea);

    /**
     * 增强添加
     * @param tea
     * @return
     */
    int insertSelective(Teacher tea);

    /**
     * 根据id查询单个
     * @param id
     * @return
     */
    Teacher selectByPrimaryKey(Long id);

    /**
     * 根据id对象高级修改
     * @param tea
     * @return
     */
    int updateByPrimaryKeySelective(Teacher tea);

    /**
     * 查询所有
     * @return
     */
    List<Teacher> getAll();

    void importExcel(MultipartFile file);
}
